//
//  SWClassificationTableViewCell.m
//  sc-cyan-ios
//
//  Created by lvjian01 on 2017/12/19.
//  Copyright © 2017年 greenbuilding. All rights reserved.
//

#import "SWClassificationTableViewCell.h"

@interface SWClassificationTableViewCell ()

@property (weak, nonatomic) IBOutlet UIView *bgView;
@property (weak, nonatomic) IBOutlet UIImageView *claImageView;
@property (weak, nonatomic) IBOutlet UILabel *claLabel;
@property (weak, nonatomic) IBOutlet UIView *bgLine;


@end

@implementation SWClassificationTableViewCell

- (void)awakeFromNib {
    [super awakeFromNib];
//    self.bgLine.backgroundColor = [UIColor gb_line_d4d4d4];
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {

    if (selected) {
        self.backgroundColor = [UIColor mainBodyColor];
        self.claImageView.backgroundColor = [UIColor clearColor];
        self.claLabel.textColor = [UIColor whiteColor];
        self.bgLine.backgroundColor = [UIColor clearColor];
    }else{
        self.backgroundColor = [UIColor clearColor];
        self.claImageView.backgroundColor = UIColorFromRGB(0xFAFAFA);
        _claLabel.textColor = [UIColor gb_textColor_4D4D4D];
        self.bgLine.backgroundColor = [UIColor gb_line_d4d4d4];
    }
    
    
    // Configure the view for the selected state
}

@end
